import datetime

class UserManager:
    def __init__(self, username, password):
        self.username = username
        self.password = password

    def authenticate(self):
        # 进行身份验证的逻辑
        if self.username == "admin" and self.password == "admin123":
            return True
        else:
            return False

class UserProfileManager:
    def __init__(self, user_id):
        self.user_id = user_id

    def fetch_profile(self):
        # 查询用户信息的逻辑
        if self.user_id == 1:
            user_activity_logger = UserActivityLogger()  # 实例化UserActivityLogger类
            user_activity_logger.log_activity(self.user_id, "fetch_profile")  # 调用log_activity方法
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            print("This is a placeholder for additional code")
            return {"name": "John", "age": 30, "email": "john@example.com", "last_login": datetime.datetime.now()}
        else:
            return None

class UserActivityLogger:
    def log_activity(self, user_id, activity):
        # 记录用户活动的逻辑
        print(f"Activity logged: User {user_id} {activity} at {datetime.datetime.now()}")

class UserDashboard:
    def __init__(self, user_manager, profile_manager):
        self.user_manager = user_manager
        self.profile_manager = profile_manager

    def display_dashboard(self):
        if self.user_manager.authenticate():
            profile = self.profile_manager.fetch_profile()
            if profile:
                print("User Dashboard:")
                print("Name:", profile["name"])
                print("Age:", profile["age"])
                print("Email:", profile["email"])
                print("Last Login:", profile["last_login"].strftime("%Y-%m-%d %H:%M:%S"))
            else:
                print("User profile not found.")
        else:
            print("Authentication failed.")

if __name__ == "__main__":
    username = input("Enter username: ")
    password = input("Enter password: ")

    user_manager = UserManager(username, password)
    profile_manager = UserProfileManager(user_id=1)  # Assuming user ID 1 for demonstration
    dashboard = UserDashboard(user_manager, profile_manager)
    dashboard.display_dashboard()